package com.wowudi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "drug")
public class Drug {
    /**
     * 药品ID
     */
    @TableId(value = "d_id", type = IdType.AUTO)
    private Integer dId;

    /**
     * 药品编号
     */
    @TableField(value = "d_card")
    private String dCard;

    /**
     * 药品名称
     */
    @TableField(value = "d_name")
    private String dName;

    /**
     * 药品品牌
     */
    @TableField(value = "d_brand")
    private String dBrand;

    /**
     * 是否处方药
     */
    @TableField(value = "d_prescription")
    private String dPrescription;

    /**
     * 进价
     */
    @TableField(value = "d_in_price")
    private Integer dInPrice;

    /**
     * 售价
     */
    @TableField(value = "d_out_price")
    private Integer dOutPrice;

    /**
     * 库存
     */
    @TableField(value = "d_stock")
    private Integer dStock;

    /**
     * 状态
     */
    @TableField(value = "d_status")
    private String dStatus;

    public static final String COL_D_ID = "d_id";

    public static final String COL_D_CARD = "d_card";

    public static final String COL_D_NAME = "d_name";

    public static final String COL_D_BRAND = "d_brand";

    public static final String COL_D_PRESCRIPTION = "d_prescription";

    public static final String COL_D_IN_PRICE = "d_in_price";

    public static final String COL_D_OUT_PRICE = "d_out_price";

    public static final String COL_D_STOCK = "d_stock";

    public static final String COL_D_STATUS = "d_status";
}